|
Radar Host Communication library
2020.08.13
|
Protocol status codes. More...
Macros | |
| #define | PROTOCOL_ERROR_INVALID_HANDLE -1 |
| #define | PROTOCOL_ERROR_COULD_NOT_OPEN_COM_PORT -100 |
| #define | PROTOCOL_ERROR_DEVICE_NOT_COMPATIBLE -101 |
| #define | PROTOCOL_ERROR_RECEIVED_NO_MESSAGE -1000 |
| #define | PROTOCOL_ERROR_RECEIVED_TIMEOUT -1001 |
| #define | PROTOCOL_ERROR_RECEIVED_BAD_MESSAGE_START -1002 |
| #define | PROTOCOL_ERROR_RECEIVED_BAD_MESSAGE_END -1003 |
| #define | PROTOCOL_ERROR_ENDPOINT_DOES_NOT_EXIST -2000 |
| #define | PROTOCOL_ERROR_ENDPOINT_WRONG_TYPE -2001 |
| #define | PROTOCOL_ERROR_ENDPOINT_VERSION_TOO_OLD -2002 |
| #define | PROTOCOL_ERROR_ENDPOINT_VERSION_TOO_NEW -2003 |
Protocol status codes.
If an error occurs during usage of the protocol or endpoint functions, one of the error codes defined here is returned. The error codes can be grouped in 4 classes.
1) General errors 2) Errors that occur when a connection can't be established. 3) Errors that occur when unexpected (or no) data is received from the connected device 4) Errors that occur due to improper endpoint request.
| #define PROTOCOL_ERROR_COULD_NOT_OPEN_COM_PORT -100 |
The specified COM port could not be opened.
Definition at line 173 of file Protocol.h.
| #define PROTOCOL_ERROR_DEVICE_NOT_COMPATIBLE -101 |
The device at the specified COM port is not compatible with the protocol.
Definition at line 178 of file Protocol.h.
| #define PROTOCOL_ERROR_ENDPOINT_DOES_NOT_EXIST -2000 |
The requested endpoint does not exist.
Definition at line 223 of file Protocol.h.
| #define PROTOCOL_ERROR_ENDPOINT_VERSION_TOO_NEW -2003 |
The requested endpoint's version is too new to be supported.
Definition at line 244 of file Protocol.h.
| #define PROTOCOL_ERROR_ENDPOINT_VERSION_TOO_OLD -2002 |
The requested endpoint's version is too old to be supported.
Definition at line 235 of file Protocol.h.
| #define PROTOCOL_ERROR_ENDPOINT_WRONG_TYPE -2001 |
The requested endpoint is not of a compatible type.
Definition at line 228 of file Protocol.h.
| #define PROTOCOL_ERROR_INVALID_HANDLE -1 |
The given protocol handle is not a valid handle to an open protocol connection.
Definition at line 158 of file Protocol.h.
| #define PROTOCOL_ERROR_RECEIVED_BAD_MESSAGE_END -1003 |
The received message did not end with the expected sequence.
Definition at line 212 of file Protocol.h.
| #define PROTOCOL_ERROR_RECEIVED_BAD_MESSAGE_START -1002 |
The start byte of the received message was incorrect.
Definition at line 205 of file Protocol.h.
| #define PROTOCOL_ERROR_RECEIVED_NO_MESSAGE -1000 |
No message was received from the device at all.
Definition at line 191 of file Protocol.h.
| #define PROTOCOL_ERROR_RECEIVED_TIMEOUT -1001 |
The message was not received completely in the expected interval.
Definition at line 196 of file Protocol.h.